A Multi-Scale Electromagnetic Particle Code with Adaptive Mesh Refinement and Its Parallelization
نویسندگان
چکیده
To investigate multi-scale phenomena in space plasma including plasma kinetic effects, we started to develop a new electromagnetic Particle-In-Cell (PIC) code with Adaptive Mesh Refinement (AMR) technique. In AMR simulation, spatial grid size and time step intervals are defined according to the hierarchy levels, where high and low levels correspond to the fine and coarse grid systems, respectively. As the simulation system evolves, some complex micro-scale phenomena can locally and intermittently occur in a hierarchical domain (Level L). If the grid size in Level L is too coarse to simulate the local complex phenomena, A higher hierarchical domain (Level L+1) is adaptively created in which the grid spacing size and the time step interval become half of those used in the domain of (Level L). AMR-PIC simulations require smaller amount of memory and shorter computation time than conventional PIC simulations. In parallelizing the code for a distributed many-core system, we adopt a scheme of dynamic domain decomposition which realizes the load balance between distributed subdomains. In conventional domain decomposition scheme, one of the issues is load balance between processors because the number of spatial grids and particles belonging to each subdomain is not always constant due to the AMR procedure. Since the cost of particle calculation is dominant, which is about 70-80% of the total cost, the number of particle calculation loops should be balanced between each processor. For this purpose we are introducing dynamic domain decomposition called DDD. In DDD, we calculate the work weights based on the cost of particle calculation and hierarchical levels of each cell. Then we decompose the domain according to the Morton curve and the work weight, so that each processor has approximately the same amount of work. By performing a simple onedimensional simulation, we confirmed that the dynamic load balancing is achieved and the computation time is reduced by introducing the dynamic domain decomposition scheme. We are currently incorporating this scheme in the three dimensional version of AMR-PIC code and are performing a test simulation to examine the parallelization efficiency as well as the scalability with respect to the number of processors.
منابع مشابه
Vectorization and Parallelization of the Adaptive Mesh Refinement N -body Code
In this paper, we describe our vectorized and parallelized adaptive mesh refinement (AMR)N -body code with shared time steps, and report its performance on a Fujitsu VPP5000 vector-parallel supercomputer. Our AMR N -body code puts hierarchical meshes recursively where higher resolution is required and the time step of all particles are the same. The parts which are the most difficult to vectori...
متن کاملA new MHD code with adaptive mesh refinement and parallelization for astrophysics
A new code, named MAP, is written in FORTRAN language for magnetohydrodynamics (MHD) calculation with the adaptive mesh refinement (AMR) and Message Passing Interface (MPI) parallelization. There are several optional numerical schemes for computing the MHD part, namely, modified Mac Cormack Scheme (MMC), Lax-Fridrichs scheme (LF) and weighted essentially non-oscillatory (WENO) scheme. All of th...
متن کاملN-Body Code with Adaptive Mesh Refinement
We have developed a simulation code with the techniques which enhance both spatial and time resolution of the PM method for which the spatial resolution is restricted by the spacing of structured mesh. The adaptive mesh refinement (AMR) technique subdivides the cells which satisfy the refinement criterion recursively. The hierarchical meshes are maintained by the special data structure and are ...
متن کاملA new multidimensional AMR Hydro+Gravity Cosmological code
A new cosmological multidimensional hydrodynamic and N-body code based on an Adaptive Mesh Refinement scheme is described and tested. The hydro part is based on modern high-resolution shock-capturing techniques, whereas N-body approach is based on the Particle Mesh method. The code has been specifically designed for cosmological applications. Tests including shocks, strong gradients, and gravit...
متن کاملAdaptive Mesh Refinement in Computational Astrophysics – Methods and Applications
The advent of robust, reliable and accurate higher order Godunov schemes for many of the systems of equations of interest in computational astrophysics has made it important to understand how to solve them in multi-scale fashion. This is so because the physics associated with astrophysical phenomena evolves in multi-scale fashion and we wish to arrive at a multi-scale simulational capability to...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011